package com.jk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.entity.RecordInvesEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface RecordInvesDao extends BaseMapper<RecordInvesEntity> {
    List<RecordInvesEntity> getRecordInvesList(@Param("recordInvesEntity") RecordInvesEntity recordInvesEntity,@Param("userId") Integer userId);

    List<RecordInvesEntity> getRecordInvesByIdList(Integer propertyId);

    BigDecimal sumPrice(Integer user_id);

    BigDecimal sumCountMoney(Integer user_id);
}
